home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Just Call Me Internet
/
Just Call Me Internet.iso
/
prog
/
atari
/
c
/
du_lib
/
xacc2
/
simple1.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-09-14
|
497b
|
27 lines
/* ein minimales XACC-Programm sieht nun in etwa so aus:*/
#include <aes.h>
#include "xacc.h"
short quit;
main()
{
const char name[] = "mein Programm";
short event, msgbuf[8];
appl_init();
xacc_init( -1, name, sizeof( name ), 0x0000 );
for ( quit = 0; !quit ; ) {
event = evnt_multi( MU_MESAG, ..., msgbuf, ... );
if ( event & MU_MESAG ) {
if ( !xacc_message( msgbuf ) ) switch ( msgbuf[0] ) {
...
}
}
}
xacc_exit();
appl_exit();
return 0;
}